import json
from tqdm import tqdm

qc_pairs_path = '/home/ljw22/workspace/qwen/MUSER-main/data/cases/cands_by_query.json'
qc_pairs_file = open(qc_pairs_path, 'r')
qc_pairs = json.load(qc_pairs_file)

feature_path = "/home/ljw22/workspace/qwen/MUSER-main/data/features/14B_feature.json"

with open(feature_path) as fin:
    feature = json.load(fin)

docid_list = list(feature.keys())


for k, v in tqdm(qc_pairs.items()):
    assert k in docid_list
    assert len(v) == 100
    for s in v:
        assert str(s) in docid_list, s